package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

/**
 * 充值交易Form
 * 
 * @author maxianbo
 * 
 */
public class InpourForm extends MultiStepForm {
    private String actionType;

    private String subAccountId;

    private String amount;

    private String remark;

    public InpourForm() {
        super();
        this.actionType = "";
        this.subAccountId = "";
        this.amount = "";
        this.remark = "";
    }

    /**
     * 
     * @return 交易类型
     */
    public String getActionType() {
        return this.actionType;
    }

    /**
     * 
     * @param actionType
     *            交易类型
     */
    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    /**
     * 
     * @return 充值金额
     */
    public String getAmount() {
        return this.amount;
    }

    /**
     * 
     * @param amount
     *            充值金额
     */
    public void setAmount(String amount) {
        this.amount = amount;
    }

    /**
     * 
     * @return 备注
     */
    public String getRemark() {
        return this.remark;
    }

    /**
     * 
     * @param remark
     *            备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 
     * @return 充值子账户编号
     */
    public String getSubAccountId() {
        return this.subAccountId;
    }

    /**
     * 
     * @param subAccountId
     *            充值子账户编号
     */
    public void setSubAccountId(String subAccountId) {
        this.subAccountId = subAccountId;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
        if (isResetable()) {
            this.actionType = "";
            this.subAccountId = "";
            this.amount = "";
            this.remark = "";
        }
    }
}
